home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #137.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  2.3 KB  |  89 lines

  1. class ┬º#137┬º
  2. {
  3.    var ┬º#33┬º = 0;
  4.    var ┬º#417┬º = 1;
  5.    var ┬º#7┬º = 0;
  6.    var ┬º#30┬º = 0;
  7.    var ┬º#73┬º = 0;
  8.    var ┬º#79┬º = 0;
  9.    var ┬º#144┬º = 0;
  10.    function ┬º#137┬º(depth)
  11.    {
  12.       this["#30"] = 0;
  13.       this["#73"] = 0;
  14.       this["#79"] = 0;
  15.       _root["#166"].setColor(eval("#5")["#291"]);
  16.       _root["#174"].setColor(eval("#5")["#291"]);
  17.       _root["#221"].setColor(eval("#5")["#200"]);
  18.       _root["#225"].setColor(eval("#5")["#200"]);
  19.       _root["#128"].setColor(eval("#5")["#81"]);
  20.       _root["#130"].setColor(eval("#5")["#81"]);
  21.       _root["#132"].setColor(eval("#5")["#81"]);
  22.    }
  23.    function getScore()
  24.    {
  25.       return this["#30"];
  26.    }
  27.    function ┬º#8┬º(┬º#97┬º)
  28.    {
  29.       if(┬º#97┬º == this["#7"])
  30.       {
  31.          return undefined;
  32.       }
  33.       this["#7"] = ┬º#97┬º;
  34.    }
  35.    function ┬º#82┬º(┬º#407┬º)
  36.    {
  37.       this["#79"] = 0;
  38.       this["#144"] = ┬º#407┬º;
  39.       _root["#166"].draw("");
  40.       _root["#174"].draw(0);
  41.       _root["#225"].draw(eval("#14").getDigit(this["#144"],1));
  42.       _root["#221"].draw(eval("#14").getDigit(this["#144"],2));
  43.       _root["#128"].draw("");
  44.       _root["#130"].draw("");
  45.       _root["#132"].draw(0);
  46.    }
  47.    function shot(┬º#435┬º)
  48.    {
  49.       if(┬º#435┬º)
  50.       {
  51.          this["#79"] = this["#79"] + 1;
  52.          _root["#174"].draw(eval("#14").getDigit(this["#79"],1));
  53.          _root["#166"].draw(eval("#14").getDigit(this["#79"],2));
  54.       }
  55.    }
  56.    function ┬º#236┬º()
  57.    {
  58.       return this["#79"] == this["#144"];
  59.    }
  60.    function update()
  61.    {
  62.       if(this["#30"] <= 0)
  63.       {
  64.          _root["#132"].draw(0);
  65.          _root["#130"].draw("");
  66.          _root["#128"].draw("");
  67.       }
  68.       else
  69.       {
  70.          _root["#132"].draw(eval("#14").getDigit(this["#30"],1));
  71.          _root["#130"].draw(eval("#14").getDigit(this["#30"],2));
  72.          _root["#128"].draw(eval("#14").getDigit(this["#30"],3));
  73.       }
  74.       if(this["#30"] < this["#73"])
  75.       {
  76.          this["#30"] += Math.ceil((this["#73"] - this["#30"]) / 4);
  77.          if(this["#30"] > this["#73"])
  78.          {
  79.             this["#30"] = this["#73"];
  80.          }
  81.       }
  82.    }
  83.    function score(n, ┬º#445┬º)
  84.    {
  85.       this["#73"] += Math.floor(n);
  86.       this.shot(┬º#445┬º);
  87.    }
  88. }
  89.